package com.example.d6_homework.homework06;


public class Card {
    private String size; // 点数
    private String color; // 花色
    private int num; // 大小  面向对象设计

    public Card(){

    }

    public Card(String size, String color, int num) {
        this.size = size;
        this.color = color;
        this.num = num;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return size + color;
    }
}
